package com.zihuan.zimageutils

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.zihuan.view.zimglibrary.ZImageConfig
import com.zihuan.view.zimglibrary.loader
import com.zihuan.view.zimglibrary.loaderBackGround
import com.zihuan.view.zimglibrary.loaderImageForVideo
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        ZImageConfig.mContext = applicationContext
        ZImageConfig.setConfig {
        }
        iv_test.loader("https://avatars3.githubusercontent.com/u/31381762?s=40&v=4")
//        iv_test.loader("https://avatars3.githubusercontent.com/u/31381762?s=40&v=4")
//        加载视频第一帧
//        iv_test.loaderImageForVideo("/storage/emulated/0/Forest River [ ♪ Sound+Music ♪ ].mp4")
    }
}
